package ThreadDemo;

import lombok.extern.slf4j.Slf4j;

/**
 * @author wang'ji'cheng
 * @date 2025/7/30
 */
@Slf4j
public class Demo2 {
    public static void main(String[] args) {
        Thread t1= new Thread("t1"){
            @Override
            public void run() {
                log.info("running");
            }
        };
        System.out.println(t1.getState());
        t1.start();
        System.out.println(t1.getState());
    }
}
